xwayland disable
exec wl-paste -t text --watch clipman store --no-persist

set $mod Mod1

#exec sway-accel-rotate

set $left h
set $down j
set $up k
set $right l
set $term alacritty
#set $term wayst --font Terminus --term xterm-256color
#set $menu dmenu_path | dmenu -fn 'Terminus:Regular:pixelsize=32' -nb '#000000' -nf '#bbbbbb' -sb '#bbbbbb' -sf '#000000' | xargs swaymsg exec --
set $menu bemenu-run --fn "Terminus 24" --prompt "$" -l 7 -f

output eDP-1 scale 1 

for_window [app_id="chromium"] focus parent

#seat seat0 xcursor_theme default 96
    bindsym $mod+Up exec wtype -k Page_Up
    bindsym $mod+Down exec wtype -k Page_Down
    bindsym Shift+Left exec wtype -k Home
    bindsym Shift+Right exec wtype -k End

    bindsym Control_L+F1 exec wtype -k F11
    bindsym Control_L+F2 exec wtype -k F12

    bindsym $mod+Shift+p exec grim -g "$(slurp)" - | wl-copy
    bindsym $mod+Shift+Delete exec systemctl suspend

    bindsym $mod+Shift+o exec swaymsg input "0:0:Atmel_maXTouch_Touchscreen" events toggle enabled disabled

    bindsym XF86PowerOff exec /home/main/scripts/sway-rotate-button.sh
    #bindsym --input-device=0:0:cros_ec_buttons XF86PowerOff exec /home/main/work/aur/sway-rotate-button.sh
    #bindsym $mod+i exec /home/main/work/aur/sway-rotate-button.sh
    bindsym $mod+Shift+Return exec $term
    bindsym $mod+x kill
    bindsym $mod+p exec $menu
    floating_modifier $mod normal
    bindsym $mod+Shift+c reload
    #bindsym $mod+Shift+q exec swaynag -t warning -m 'Exit sway?' -b 'Yes' 'swaymsg exit'
    bindsym $mod+Shift+q exec swaymsg exit
    bindsym $mod+$left focus left
    bindsym $mod+$down focus down
    bindsym $mod+$up focus up
    bindsym $mod+$right focus right
    bindsym $mod+Left focus left
#    bindsym $mod+Down focus down
#    bindsym $mod+Up focus up
    bindsym $mod+Right focus right
    bindsym $mod+Shift+$left move left
    bindsym $mod+Shift+$down move down
    bindsym $mod+Shift+$up move up
    bindsym $mod+Shift+$right move right
    bindsym $mod+Shift+Left move left
    bindsym $mod+Shift+Down move down
    bindsym $mod+Shift+Up move up
    bindsym $mod+Shift+Right move right
    bindsym $mod+F1 workspace number 1
    bindsym $mod+F2 workspace number 2
    bindsym $mod+F3 workspace number 3
    bindsym $mod+F4 workspace number 4
    bindsym $mod+F5 workspace number 5
    bindsym $mod+F6 workspace number 6
    bindsym $mod+F7 workspace number 7
    bindsym $mod+F8 workspace number 8
    bindsym $mod+F9 workspace number 9
    bindsym $mod+F10 workspace number 10
    bindsym $mod+Shift+F1 move container to workspace number 1
    bindsym $mod+Shift+F2 move container to workspace number 2
    bindsym $mod+Shift+F3 move container to workspace number 3
    bindsym $mod+Shift+F4 move container to workspace number 4
    bindsym $mod+Shift+F5 move container to workspace number 5
    bindsym $mod+Shift+F6 move container to workspace number 6
    bindsym $mod+Shift+F7 move container to workspace number 7
    bindsym $mod+Shift+F8 move container to workspace number 8
    bindsym $mod+Shift+F9 move container to workspace number 9
    bindsym $mod+Shift+F10 move container to workspace number 10
    bindsym $mod+Shift+v splith
    bindsym $mod+Shift+b splitv
    bindsym $mod+s layout stacking
    bindsym $mod+w layout tabbed
    bindsym $mod+e layout toggle split
    bindsym $mod+f fullscreen
    bindsym $mod+Shift+space floating toggle
    bindsym $mod+space focus mode_toggle
    bindsym $mod+a focus parent
    #bindsym $mod+Shift+minus move scratchpad
    #bindsym $mod+minus scratchpad show
mode "resize" {
    bindsym $left resize shrink width 10px
    bindsym $down resize grow height 10px
    bindsym $up resize shrink height 10px
    bindsym $right resize grow width 10px
    bindsym Left resize shrink width 10px
    bindsym Down resize grow height 10px
    bindsym Up resize shrink height 10px
    bindsym Right resize grow width 10px
    bindsym Return mode "default"
    bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
bar {
    position top
    status_command ~/scripts/baraction.sh
    workspace_buttons no
    font pango:Terminus Regular 18
    colors {
        statusline #ffffff
        background #323232
        inactive_workspace #32323200 #32323200 #5c5c5c
    }
}
#input type:keyboard {
#
#  # Modified programmer Dvorak. File at ~/.xkb/symbols/dvp_alt_gr_remapped_to_super
#  xkb_layout "dvp_alt_gr_remapped_to_super"
#
#  # Capslock key should work as escape key
#  # See /usr/share/X11/xkb/rules/xorg.lst for options
#  xkb_options caps:escape
#
#  repeat_delay 250
#  repeat_rate 45
#}


#input "type:keyboard" {           # or input <identifier>
#    xkb_file ~/.config/xkb/custom
#}




default_border pixel 1
include /etc/sway/config.d/*
